package com.symbio.service.impl;

import java.io.Serializable;

import com.symbio.dao.hibernate.GenericDaoImpl;

public abstract class AbstractServiceImpl<T,PK extends Serializable> implements BaseService<T, PK> {

    
    public abstract GenericDaoImpl<T,PK> getDao(); 
	
	@Override
	public void save(T entity) {		
		getDao().save(entity);
	}

	@Override
	public void update(T entity) {	
		getDao().update(entity);
	}

	@Override
	public void delete(T entity) {
		getDao().delete(entity);
		
	}

	@Override
	public void delete(PK id) {
		getDao().delete(id);
		
	}

	@Override
	public T get(PK id) {		
		return (T) getDao().get(id);
	}

	@Override
	public T find(PK id) {	
		return (T) getDao().find(id);
	}

}
